﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PostSubmit
{
    public partial class UpperAndLower : Form
    {
        public UpperAndLower()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //大写
            if (radioButton1.Checked)
            {
                textBox2.Text = textBox1.Text.ToUpper();
            }
            else if (radioButton2.Checked)
            {
                textBox2.Text = textBox1.Text.ToLower();
            }
        }
    }
}
